package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 硬件使用情况表对象 bus_hardware_uses
 * 
 * @author asher
 * @date 2021-11-02
 */
public class BusHardwareUses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 统计记录id */
    private Long recordId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 被统计硬件id */
    @Excel(name = "被统计硬件id")
    private Long hardwareId;

    /** 结束使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 开始使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 此次使用时长 */
    @Excel(name = "此次使用时长")
    private Long duration;

    /** 累计使用时长 */
    @Excel(name = "累计使用时长")
    private Long totalDuration;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setHardwareId(Long hardwareId) 
    {
        this.hardwareId = hardwareId;
    }

    public Long getHardwareId() 
    {
        return hardwareId;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setTotalDuration(Long totalDuration) 
    {
        this.totalDuration = totalDuration;
    }

    public Long getTotalDuration() 
    {
        return totalDuration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("recordId", getRecordId())
            .append("deviceType", getDeviceType())
            .append("hardwareId", getHardwareId())
            .append("endTime", getEndTime())
            .append("startTime", getStartTime())
            .append("duration", getDuration())
            .append("totalDuration", getTotalDuration())
            .toString();
    }
}
